#100以内猜数，五次皆错则输出结果；
import random

computer = random.randint(1, 100)
num = 1

while num < 6:
    num += 1
    player = int(input('猜1到100的数字： '))
    if player == computer:
        print('猜对了')
        break
    elif player > computer:
        print('猜大了')
    else:
        print('猜小了')
else:
    print('你出的是%s：, 计算机出的是: %s' % (player,computer))
